// Copyright (c) 2025 Yao Yu
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

use xmas_elf::header::Machine;
#[cfg(target_arch="x86_64")]
pub mod x86;

pub fn arch_right(atype: Machine) -> bool {
    #[cfg(target_arch="x86_64")]
    return atype == Machine::X86_64;
    #[cfg(target_arch="riscv64")]
    return atype == Machine::RISC_V;
}
